package com.xmotor.testjavaxvalidation.controller;

import com.xmotor.testjavaxvalidation.exception.BusinessException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 测试业务异常
 * @Author Dang Xianyue
 * @Date 2020-09-04 11:58
 * @Version 1.0
 */
@RestController
@RequestMapping("/v4")
public class TestControllerV4 extends BaseController {

    @RequestMapping("/test1")
    public void test() throws Exception{
        throw new BusinessException(201,"测试业务异常信息");
    }
}
